package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:DELL
 * Date:2024-10-22
 * Time:14:25
 */
public class Showopteration implements IOpteration {
    public void work(BookList bookList){
        System.out.println("显示图书！");
        int currentSize=bookList.getUsedsize();
        for (int i = 0; i < currentSize; i++) {
            Book book=bookList.getbooks(i);
            System.out.println(book);
        }
    }
}
